  <style>
    .modal-content{
        background-color: #212121;
    }
  </style>
  
  <!-- Modal -->
  <div class="modal fade" id="exampleModal-{{ item.id }}" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
    <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-header">
          <h5 class="modal-title" id="exampleModalLabel">{{item.id}}</h5>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        <div class="modal-body">
         {{item.description}}
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
         
        </div>
      </div>
    </div>
  </div>



  <div class="modal fade" id="Purchase-Modal-{{ item.id }}" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
    <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-header">
          <h5 class="modal-title" id="exampleModalLabel">{{item.id}}</h5>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        <div class="modal-body">
         
         <form method="post">
            {{purchase_form.hidden_tag()}}
            <h4 class="text-center">Are you sure to buy {{item.name}} for {{item.price}}$ ?</h4>
            <h6 class="text-center">By clicking purchase,you will purchase that item.</h6>
            <input id="purchased_item" name = 'purchased_item' type="hidden" value="{{item.name}}">
            <br>
            {{ purchase_form.submit(class="btn btn-outline-success btn-block")}}
         </form>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
          
        </div>
      </div>
    </div>
  </div>